import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/Home.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'Home',
    component: Home
  },
  {
    path: "/geRen",
   
    component: () => import("../views/GeRen.vue")
  },
  {
    path:"/search",
    name:'Search',
    component:()=>import("../views/Search.vue")
  },
  {
    path:'/dingDan',
    component:()=>import('../views/dingDan.vue')
  },
  {
    path:'/login',
    component:()=>import("../views/Login.vue"),
   
  },
  {
    path:'/honBao',
    component:()=>import('../views/HonBao.vue')
  },
  {
    path:'/ziLiao',
    component:()=>import('../views/ZiLiao.vue')
  },
  {
    path:'/fenLei',
    component:()=>import('../views/FenLei.vue')
  },
  {
    path:'/dinDan',
    component:()=>import('../views/dingDan.vue')
  },
  {
    path:'/xianQin',
    component:()=>import('../views/XiangQing.vue')
  }
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
